package com.ruoyi.function.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购买商品对象 order_items
 *
 * @author ruoyi
 * @date 2025-03-21
 */
@Data
public class OrderItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一标识 */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品详细描述 */
    @Excel(name = "商品详细描述")
    private String description;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 销售价格（精确到分） */
    @Excel(name = "销售价格", readConverterExp = "精=确到分")
    private BigDecimal price;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private String serviceTypeId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 是否是必选的 */
    @Excel(name = "是否是必选的")
    private String isMandatory;

    /** 汽车品牌 */
    @Excel(name = "汽车品牌")
    private String carBrand;

    /** 汽车车型表 */
    @Excel(name = "汽车车型表")
    private String carModel;

    /** 汽车车系表 */
    @Excel(name = "汽车车系表")
    private String carSeries;
    /** 工时 */
    @Excel(name = "工时")
    private BigDecimal workingHours;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productId", getProductId())
                .append("name", getName())
                .append("description", getDescription())
                .append("picture", getPicture())
                .append("price", getPrice())
                .append("serviceTypeId", getServiceTypeId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("orderId", getOrderId())
                .append("isMandatory", getIsMandatory())
                .append("carBrand", getCarBrand())
                .append("carModel", getCarModel())
                .append("carSeries", getCarSeries())
                .append("number", getNumber())
                .toString();
    }
}
